import axios from 'axios'
// 设置基准路径
axios.defaults.baseURL = 'http://localhost:8888/api'
// 获取图片列表顶部分类
export const getimgcategory = () => axios.get('/getimgcategory').then(res => res.data)
// 根据分类id获取图片列表e
export const getimages = id => axios.get(`/getimages/${id}`).then(res => res.data)
// 图文详情缩略图 及 商品列表详情轮播图
export const getthumimages = id => axios.get(`/getthumimages/${id}`).then(res => res.data)
export const getimageInfo = id => axios.get(`/getimageInfo/${id}`).then(res => res.data)
